#include<bits/stdc++.h>

using namespace std;

bool cmp(int a, int b) {
    return a > b;
}

int main() {
    int a[] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 0};
    sort(a, a + 10, cmp);
    for (int i = 0; i < 10; i++) {
        cout << a[i] << " ";
    }
    cout << a[0] << endl;
    return 0;
}
